/*
 * @Author: 许旺玉
 * @Description: 分销商接口
 * @Date: 2020-06-28 16:11:19
 * @LastEditTime: 2020-06-29 11:11:13
 * @LastEditors: Please set LastEditors
 */ 
import { ajaxGet,ajaxPost} from '@/utlis/request.js'

export function distribution_info(params) {  //分销商信息  
    const url = 'distribution/distributor/info'
    return ajaxGet(url, params)
}

export function distribution_underling(params) {  //分销商下级信息  
    const url = 'distribution/distributor/underling'
    return ajaxGet(url, params)
}

export function distribution_edit(data) {  //编辑分销商申请  
    const url = 'distribution/distributor/edit'
    return ajaxPost(url, data)
}

export function distribution_add(data) {  //申请成为分销商  
    const url = 'distribution/distributor/add'
    return ajaxPost(url, data)
}